//
//  GoodsTool.h
//  收纳
//
//  Created by  on 2022/10/29.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface GoodsTool : NSObject
+ (void)find:(BOOL)isContainer complete:(nullable void(^) (NSMutableArray <Goods*>*result))block;
+ (void)update:(Goods*)model complete:(nullable void(^) (BOOL success))block;
+ (void)delete:(Goods*)model complete:(nullable void(^) (BOOL success))block;
+ (void)find:(BOOL)isContainer name:(NSString *)name complete:(nullable void(^) (NSMutableArray <Goods*>*result))block;
+ (void)search:(NSString *)text complete:(nullable void(^) (NSMutableArray <Goods*>*result))block;


@end

NS_ASSUME_NONNULL_END
